package com.xmsx.back.pojo;

import java.util.Objects;

public class Organization {

    private int id;
    private String orgName;
    private String orgRegion;
    private int grassrootType;
    private int defenseMilitary;
    private int collegeInstitute;
    private int keyNational;
    private int keyMedical;
    private int keyFinancial;
    private int keyMedia;
    private int office;
    private int keySoftware;
    private int informSafety;

    public Organization() {}

    public Organization(int id, String orgName, String orgRegion, int grassrootType, int defenseMilitary, int collegeInstitute, int keyNational, int keyMedical, int keyFinancial, int keyMedia, int office, int keySoftware, int informSafety) {
        this.id = id;
        this.orgName = orgName;
        this.orgRegion = orgRegion;
        this.grassrootType = grassrootType;
        this.defenseMilitary = defenseMilitary;
        this.collegeInstitute = collegeInstitute;
        this.keyNational = keyNational;
        this.keyMedical = keyMedical;
        this.keyFinancial = keyFinancial;
        this.keyMedia = keyMedia;
        this.office = office;
        this.keySoftware = keySoftware;
        this.informSafety = informSafety;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getOrgRegion() {
        return orgRegion;
    }

    public void setOrgRegion(String orgRegion) {
        this.orgRegion = orgRegion;
    }

    public int getGrassrootType() {
        return grassrootType;
    }

    public void setGrassrootType(int grassrootType) {
        this.grassrootType = grassrootType;
    }

    public int getDefenseMilitary() {
        return defenseMilitary;
    }

    public void setDefenseMilitary(int defenseMilitary) {
        this.defenseMilitary = defenseMilitary;
    }

    public int getCollegeInstitute() {
        return collegeInstitute;
    }

    public void setCollegeInstitute(int collegeInstitute) {
        this.collegeInstitute = collegeInstitute;
    }

    public int getKeyNational() {
        return keyNational;
    }

    public void setKeyNational(int keyNational) {
        this.keyNational = keyNational;
    }

    public int getKeyMedical() {
        return keyMedical;
    }

    public void setKeyMedical(int keyMedical) {
        this.keyMedical = keyMedical;
    }

    public int getKeyFinancial() {
        return keyFinancial;
    }

    public void setKeyFinancial(int keyFinancial) {
        this.keyFinancial = keyFinancial;
    }

    public int getKeyMedia() {
        return keyMedia;
    }

    public void setKeyMedia(int keyMedia) {
        this.keyMedia = keyMedia;
    }

    public int getOffice() {
        return office;
    }

    public void setOffice(int office) {
        this.office = office;
    }

    public int getKeySoftware() {
        return keySoftware;
    }

    public void setKeySoftware(int keySoftware) {
        this.keySoftware = keySoftware;
    }

    public int getInformSafety() {
        return informSafety;
    }

    public void setInformSafety(int informSafety) {
        this.informSafety = informSafety;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Organization)) return false;
        Organization that = (Organization) o;
        return getId() == that.getId() &&
                getGrassrootType() == that.getGrassrootType() &&
                getDefenseMilitary() == that.getDefenseMilitary() &&
                getCollegeInstitute() == that.getCollegeInstitute() &&
                getKeyNational() == that.getKeyNational() &&
                getKeyMedical() == that.getKeyMedical() &&
                getKeyFinancial() == that.getKeyFinancial() &&
                getKeyMedia() == that.getKeyMedia() &&
                getOffice() == that.getOffice() &&
                getKeySoftware() == that.getKeySoftware() &&
                getInformSafety() == that.getInformSafety() &&
                Objects.equals(getOrgName(), that.getOrgName()) &&
                Objects.equals(getOrgRegion(), that.getOrgRegion());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getId(), getOrgName(), getOrgRegion(), getGrassrootType(), getDefenseMilitary(), getCollegeInstitute(), getKeyNational(), getKeyMedical(), getKeyFinancial(), getKeyMedia(), getOffice(), getKeySoftware(), getInformSafety());
    }

    @Override
    public String toString() {
        return "Organization{" +
                "id=" + id +
                ", orgName='" + orgName + '\'' +
                ", orgRegion='" + orgRegion + '\'' +
                ", grassrootType=" + grassrootType +
                ", defenseMilitary=" + defenseMilitary +
                ", collegeInstitute=" + collegeInstitute +
                ", keyNational=" + keyNational +
                ", keyMedical=" + keyMedical +
                ", keyFinancial=" + keyFinancial +
                ", keyMedia=" + keyMedia +
                ", office=" + office +
                ", keySoftware=" + keySoftware +
                ", informSafety=" + informSafety +
                '}';
    }
}
